<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>学生课程</title>
 <link rel="stylesheet" href="style/book.css">
    <link rel="stylesheet" type="text/css" href="style/pageGroup.css">
    <style>
    * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body{
				margin: 0;
				background: url(img/5.jpg);			
				background-size:cover;  
				
			}
    	#pp{
		
		width: 1200px;
		height: 500px;
		background: gainsboro;
		margin:0px auto;
		position: relative;
	}
	    table, tr, td {
            text-align: center;
            border: 1px solid gray;
            border-collapse: collapse;
        }
        th{
        	text-align: center;
            border: 1px solid gray;
            background: white;
        }
        table {
            width: 60%;
            position: relative;
            top: 30px;
            left: 250px;
        }          
          .div1{           
        	margin-left: 500px;
        	margin-top: 200px;
        }
        
        
        
    </style>
</head>
<body>   
        <p>
            <a href="StudentIndex.jsp">返回</a>
            
        </p> 
        <div id="pp">            
       	  <table>
            <tr>
  				<td>课程名</td>
				<td>课程号</td>
				<td>日期</td>
				<td>教室</td>
				<td>操作</td>
				<td>操作</td>
				<td>备注</td>
 			</tr>
       	  	<c:forEach items="${page.list}" var="item">
			 
			  <tr>
			  <td>${item.cname }</td>			 
			  <td>${item.cno }</td>
			   <td>${item.date }</td>
			   <td>${item.classroom }</td>
	        <td> <a href="stu_courseupdate.jsp?name=${item.cname}">修改</a></td>
			<td> <a href="delstucourse?cname=${item.cname}">删除</a></td>				
									
			 <td><input type="text" name="beizhu"  value=" ${item.beizhu}" disabled="disabled" >
			<a href="addbeizhu.jsp?p=${item.cname }">增改备注</a></td> 
			</tr>			
			</c:forEach>
			
			
			
       	  </table>
       	   <div class="div1">
           	  	<tr style="text-align=center">
	<td colsapn="3">
	<a href="Fenye?pageNum=1">首页</a>
	<a href="Fenye?pageNum=${page.prePageNum }">上一页</a>
	<a href="Fenye?pageNum=${page.nextPageNum }">下一页</a>
	<a href="Fenye?pageNum=${page.totalPageNum }">尾页</a>
	一共有${page.totalCount}条数据,当前是${page.pageNum }页
	</td>
    </tr>
    </div> 
    </div>      	      
</body>
</html>          	